package com.pig4cloud.pig.duorou.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.pig.duorou.entity.DuorouGreenhouseDeviceEntity;
import com.pig4cloud.pig.duorou.mapper.DuorouGreenhouseDeviceMapper;
import com.pig4cloud.pig.duorou.service.DuorouGreenhouseDeviceService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 关系表大棚和设备之间1-n
 *
 * @author lty
 * @date 2024-11-05 20:24:38
 */
@Service
public class DuorouGreenhouseDeviceServiceImpl extends ServiceImpl<DuorouGreenhouseDeviceMapper, DuorouGreenhouseDeviceEntity> implements DuorouGreenhouseDeviceService {

	@Resource
	private DuorouGreenhouseDeviceMapper duorouGreenhouseDeviceMapper;

	@Override
	public List<Long> getDeviceIDListByGreenhouseId(Long greenhouseID) {
		List<Long> devIdListByHouseID = duorouGreenhouseDeviceMapper.getDevIdListByHouseID(greenhouseID,"0");
		return devIdListByHouseID;
	}
}